import {
    BankOutlined,
    BarsOutlined,
    FileTextOutlined,
    HomeOutlined,
    MenuOutlined,
    OneToOneOutlined,
    SafetyCertificateOutlined,
    TeamOutlined,
    UserOutlined,
    WalletOutlined
} from "@ant-design/icons-vue";

declare interface MenuModule {
    title: string,
    path: string,
    icon?: any,
    children?: MenuModule[]
}

export default <MenuModule[]>[
    {
        title: '基础信息',
        path: '/admin',
        icon: HomeOutlined
    },
    {
        title: '企业管理',
        path: '/admin/enterprises',
        icon: BankOutlined
    },
    {
        title: '权限管理',
        path: '/admin/auth',
        children: [
            {
                title: '成员管理',
                path: '/admin/members',
                icon: TeamOutlined
            },
            {
                title: '角色管理',
                path: '/admin/roles',
                icon: UserOutlined
            },
            {
                title: '权限管理',
                path: '/admin/permission',
                icon: MenuOutlined
            },
        ]
    },

    {
        title: '财务设置',
        path: '/admin/finance',
        children: [
            {
                title: '账户管理',
                icon: WalletOutlined,
                path: '/admin/finance/account'
            },
            {
                title: '科目管理',
                icon: BarsOutlined,
                path: '/admin/finance/bill'
            }
        ]
    },
    {
        title: '通用设置',
        path: '/admin/parameter',
        children: [
            {
                title: '分类设置',
                icon: BarsOutlined,
                path: '/admin/parameter/category'
            },
            {
                title: '数据字典',
                path: '/admin/dictionary',
                icon: OneToOneOutlined
            }
        ]
    },
    {
        title: '安全设置',
        children: [
            {title: '安全设置', path: '/admin/securities', icon: SafetyCertificateOutlined},
            {title: '操作日志', path: '/admin/logs', icon: FileTextOutlined}
        ]
    }
]